package com.qingxin.ui.bean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;

public class UILayoutLeft {

	private String width;
	private String hide;
	private String keeptab;
	private String type;
	
	private List<UILeftTab> leftTabs = new Vector<UILeftTab>();
	private Map<String, UILeftTab> tabsMap = new HashMap<String, UILeftTab>();
	
	public UILayoutLeft() {
	}
	
	
	public String getWidth() {
		return width;
	}
	public void setWidth(String width) {
		this.width = width;
	}
	public String getHide() {
		return hide;
	}
	public void setHide(String hide) {
		this.hide = hide;
	}
	public String getKeeptab() {
		return keeptab;
	}
	public void setKeeptab(String keeptab) {
		this.keeptab = keeptab;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public List<UILeftTab> getLeftTabs() {
		return leftTabs;
	}
	public void setLeftTabs(List<UILeftTab> leftTabs) {
		this.leftTabs = leftTabs;
	}
	public void addLeftTab(UILeftTab leftTab){
		leftTabs.add(leftTab);
		tabsMap.put(leftTab.getId().toLowerCase(), leftTab);
	}
	public UILeftTab getLeftTab(String id){
		return tabsMap.get(id.toLowerCase());
	}
	
	
}
